/**
 * Various HTTP status codes, for example <i>200 OK</i>.
 *
 * @author alan, micha
 */

package tomkitty.server;

import tomkitty.turdlet.*;
import tomkitty.util.*;

/**
 *
 * @author alan
 */
public interface HttpConstants {
    /** 2XX: generally "OK" */
    public static final String HTTP_OK = new String("200 OK");
    public static final String HTTP_CREATED = new String("201 Created");
    public static final String HTTP_ACCEPTED = new String("202 Accepted");
    public static final String HTTP_NOT_AUTHORITATIVE = new String("203 Non-Authoritative Information");
    public static final String HTTP_NO_CONTENT = new String("204 No Content");
    public static final String HTTP_RESET = new String("205 Reset Content");
    public static final String HTTP_PARTIAL = new String("206 Partial Content");

    /** 3XX: relocation/redirect */
    public static final String HTTP_MULT_CHOICE = new String("300 Multiple Choices");
    public static final String HTTP_MOVED_PERM = new String("301 Moved Permanently");
    public static final String HTTP_MOVED_TEMP = new String("302 Found");
    public static final String HTTP_SEE_OTHER = new String("303 See Other");
    public static final String HTTP_NOT_MODIFIED = new String("304 Not Modified");
    public static final String HTTP_USE_PROXY = new String("305 Use Proxy");
    public static final String HTTP_TEMPORARY_REDIRECT = new String("307 Temporary Redirect");

    /** 4XX: client error */
    public static final String HTTP_BAD_REQUEST = new String("400 Bad Request");
    public static final String HTTP_UNAUTHORIZED = new String("401 Unauthorized");
    public static final String HTTP_PAYMENT_REQUIRED = new String("402 Payment Required");
    public static final String HTTP_FORBIDDEN = new String("403 Forbidden");
    public static final String HTTP_NOT_FOUND = new String("404 Not Found");
    public static final String HTTP_BAD_METHOD = new String("405 Method Not Allowed");
    public static final String HTTP_NOT_ACCEPTABLE = new String("406 Not Acceptable");
    public static final String HTTP_PROXY_AUTH = new String("407 Proxy Authentication Required");
    public static final String HTTP_CLIENT_TIMEOUT = new String("408 Request Timeout");
    public static final String HTTP_CONFLICT = new String("409 Conflict");
    public static final String HTTP_GONE = new String("410 Gone");
    public static final String HTTP_LENGTH_REQUIRED = new String("411 Length Required");
    public static final String HTTP_PRECON_FAILED = new String("412 Precondition Failed");
    public static final String HTTP_ENTITY_TOO_LARGE = new String("413 Request Entity Too Large");
    public static final String HTTP_REQ_TOO_LONG = new String("414 Request-URI Too Long");
    public static final String HTTP_UNSUPPORTED_TYPE = new String("415 Unsupported Media Type");

    /** 5XX: server error */
    public static final String HTTP_SERVER_ERROR = new String("500 Internal Server Error");
    public static final String HTTP_INTERNAL_ERROR = new String("501 Not Implemented");
    public static final String HTTP_BAD_GATEWAY = new String("502 Bad Gateway");
    public static final String HTTP_UNAVAILABLE = new String("503 Service Unavailable");
    public static final String HTTP_GATEWAY_TIMEOUT = new String("504 Gateway Timeout");
    public static final String HTTP_VERSION = new String("505 Version Not Supported");
}
